import request from '@/utils/request'

export function all(query) {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig/queryList',
    method: 'post',
    data: query
  })
}

export function add(obj) {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig/add',
    method: 'post',
    data: obj
  })
}

export function info(feeCode) {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig/queryInfo/' + feeCode,
    method: 'get'
  })
}

export function update(obj) {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig/update',
    method: 'put',
    data: obj
  })
}

export function deleteObj(feeCode) {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig//delete/' + feeCode,
    method: 'delete'
  })
}

export function queryAllFeeNoPage() {
  return request({
    url: '/api/adminCrm/payChannelFeeConfig/queryAll/',
    method: 'get'
  })
}
